package com.mashibing.juc.c_026_01_ThreadPool;

import java.util.concurrent.Executor;

/**
 * 线程池
 * @author: Yuanzt
 * @Date: 2021/4/2
 */
public class T01_MyExecutor implements Executor {

    @Override
    public void execute(Runnable command) {
        command.run();
    }

    public static void main(String[] args) {
        new T01_MyExecutor().execute(()->{
            System.out.println("Hello Executor");
        });
    }
}
